'use strict';
const db=uniCloud.database()
exports.main = async (event, context) => {
	let {name,sex,birth,die,title,age,nature,grade,novel,dieyear,birthyear,presonimg} = event;
	let novels = novel;
	let res = await db.collection("novelpersonlist").add({
		name,sex,birth,die,title,age,nature,grade,dieyear,birthyear,presonimg,novel
	});
	return res;
};
